package com.nuanshui.heatedloan.dao.cms.security;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;
import com.nuanshui.heatedloan.entity.cms.security.UserVO;
import com.nuanshui.heatedloan.extension.hibernate.HibernateUtils;
import com.nuanshui.heatedloan.util.dwz.DwzPage;

@Component
public class UserDaoImpl implements UserDaoCustom{
	@Autowired
	private HibernateUtils hibernateUtils;
	
	@Autowired
	private JdbcTemplate  jdbcTemplate;
	
	@Override
	public List<UserVO> findByQuery(String query, DwzPage page) {
		UserVO user = JSON.parseObject(query, UserVO.class);
		StringBuilder sb = new StringBuilder();
		sb.append("select * from cms_security_user where ");
		if(user.getUsername() != null){
			
		}
		
		
		
		String sql = sb.toString();
		
		return null;
	}
	
}
